<?php
/**
 * Created by PhpStorm.
 * User: zl
 * Date: 2017/7/25
 * Time: 19:55
 */
    require_once('LoanFee.php');
    require_once('../Common.php');
    $userID = $_REQUEST['user_id'];
    $state = $_REQUEST['state'];
    $return_array = array();
    if(!isset($userID)){
        $return_array['state'] = 0;
        $return_array['error'] = 'POST_ERROR';
        exit(json_encode($return_array));
    }

    $l_fee = new LoanFee();
    $r = $l_fee->getOrdinaryLoanFeeByUser($userID, $state);

    echo json_encode($r);




?>